package com.fmn.dots_final_i_hope;

import com.fmn.dots_final_i_hope.R;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;


public class MenuActivity extends Activity implements OnClickListener {

	private ImageView startVsAndroid;
	private ImageView options;
	private ImageView startVsPlayer;
	private ImageView exit;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.activity_menu);

		options = (ImageView) findViewById(R.id.optionsButton);
		options.setOnClickListener(this);

		startVsAndroid = (ImageView) findViewById(R.id.startVsAndroidButton);
		startVsAndroid.setOnClickListener(this);
		
		exit = (ImageView) findViewById(R.id.exitButton);
		exit.setOnClickListener(this);
		
		startVsPlayer = (ImageView) findViewById(R.id.startVsPlayerButton);
		startVsPlayer.setOnClickListener(this);

	}

	@Override
	public void onClick(View v) {

		switch (v.getId()) {
		case R.id.startVsPlayerButton: {
			startActivity(new Intent(MenuActivity.this, MainActivity.class));
			break;
		}
		case R.id.startVsAndroidButton: {
			startActivity(new Intent(MenuActivity.this, PvBotActivity.class));
			break;
		}
		case R.id.optionsButton: {
			//GameDialogs.showTableSizeDialog(MenuActivity.this);
			startActivity(new Intent(MenuActivity.this, OptionsActivity.class));
			break;
		}
		case R.id.exitButton: {
			finish();
			break;
		}

		}

	}

}
